//
//  GamityViewController.m
//  myDemo2
//
//  Created by wuxueying on 14-4-13.
//
//

#import "GamityViewController.h"
#import "AAAAchievementManager.h"
#import "AAAGamificationManager.h"

@interface GamityViewController ()
@property (weak, nonatomic) IBOutlet AAAScoreView *scoreView;
@end
@implementation GamityViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    [[AAAGamificationManager sharedManager] setScoreView:self.scoreView];
    [[AAAGamificationManager sharedManager] setMainPlayersScore:0];
    [self.scoreView setScoreTextAlignment:NSTextAlignmentCenter];
    [self.scoreView setScoreWithoutAnimation:0];
}
- (IBAction)set:(id)sender {
    [[AAAGamificationManager sharedManager] setMainPlayersScore:4];
}

- (IBAction)add:(id)sender {
    [[AAAGamificationManager sharedManager] addToMainPlayerScore:4];
}
@end
